//
//  ZKJAction.h
//  PolicyDetail
//
//  Created by 我叫MT on 16/7/30.
//  Copyright © 2016年 Pinksnow. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "base_PopView.h"

typedef void(^clickBlock)(void);
typedef void(^cancelBlock)(void);
@interface base_Tooltip : NSObject<UIAlertViewDelegate>

@property(nonatomic, copy)void(^clickBock)(void);

@property(nonatomic, copy)clickBlock block;
@property(nonatomic, copy)cancelBlock cancelBlock;
-(void)clickBlock:(clickBlock)block;
-(void)cancelBlock:(cancelBlock)block;
/**
 *  这是中部部弹出样式的 数组中传入三个参数 分别为标题，内容，动作 及动作按钮回调
 */
+(UIAlertController *)alterWithTitleArray:(NSArray *)array withBlock:(clickBlock)block;
/**
 *  底部弹出样式 数组传入标题，提示，动作 
 */
+(UIAlertController *)ActionSheetWithTitleArray:(NSArray *)array withBlock:(clickBlock)block  withCancelBlock:(cancelBlock)cancelBlock;

/**
 *  只显示黑底白字的弹出view 背景不可被点击
 *
 *  @param Str 展示的话
 */
+(void)SVProgressWithTitle:(NSString *)Str;

+(void)SVProgressShowFailMessage:(NSString *)string;
+(void)SVProgressShowSuccessMessage:(NSString *)string;
/**
 *  显示由数字按顺序传入标题、提示信息、右左动作按钮   并附带确定按钮回调
 */
+(UIAlertController *)alterWithTwoActionByArray:(NSArray *)array withblock:(clickBlock)block
                                withSecondBlock:(cancelBlock)cancelBlock;




/**
 *  自定义弹出框 参数依次为显示信息  持续时间 父view  0、1
 */
+(void)noticesWithTitle:(NSString *)title Time:(NSTimeInterval )time fatherView:(UIView *)view style:(YHNoticesStyle)style;




@end
